package  com.pcbly.web.business.publicinfo;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.publicinfo.ArticleBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface ArticleService extends BaseService<ArticleBean> {

	ArticleBean getArticleBeanById(String id) throws Exception;
	
	void removeArticleBeanById(String id) throws Exception;
	
	void removeArticleBeanByIds(String ids) throws Exception;
	
	ArticleBean saveArticleBean(ArticleBean publicinfo) throws Exception;
	
	ArticleBean updateArticleBean(ArticleBean publicinfo) throws Exception;
	
	Page<ArticleBean>  findArticleBeanByCond(ArticleBean bean,
			Page<ArticleBean> page, String orderByName, boolean asc)
			throws Exception;
	void saveArticleBeanExt(String sql) throws Exception;

	String findArticleBeanExtCreate(String tableName) throws Exception;

	String findArticleBeanExtEdit(String tableName, String id)
			throws Exception;

	String findArticleBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasArticleBeanExtData(String tableName, String id)
			throws Exception;
}